/*
 * @Description: 求任意个数值的和
 * @Author: zzj
 * @Date: 2021-09-08 19:51:50
 * @LastEditors: zzj
 * @LastEditTime: 2021-09-08 19:51:50
 */

function add(){
    var result = 0;
    for(var key in arguments){
        result += arguments[key];
    }
    return result;
}
console.log(add(1,2,3,4,5));